/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package perso;

/**
 *
 * @author vendome
 */
public class Enseignant extends Personne{
    private int heures;

  public Enseignant(String nom, int age, int heures)
  {
    super(nom,age);
    this.heures = heures;
  }

  public int getHeures()
  {
    return this.heures;
  }

  public void setHeures(int val)
  {
    this.heures = val;
  }
  
    @Override
  public String toString()
  {
    return super.toString() + ", Heures: "+this.heures;
  }

}
